﻿namespace ICMRemoteEdu.Forms
{
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class ICMRegData : Form
    {
        private Button button1;
        private ComboBox cbCompany;
        private BindingSource companyBindingSource;
        private IContainer components;
        private Info info;

        public ICMRegData()
        {
            this.InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.info.AcceptChanges();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            this.cbCompany = new ComboBox();
            this.companyBindingSource = new BindingSource(this.components);
            this.info = new Info();
            this.button1 = new Button();
            ((ISupportInitialize) this.companyBindingSource).BeginInit();
            this.info.BeginInit();
            base.SuspendLayout();
            this.cbCompany.DataBindings.Add(new Binding("SelectedValue", this.companyBindingSource, "ID", true));
            this.cbCompany.DataBindings.Add(new Binding("Text", this.companyBindingSource, "Name", true));
            this.cbCompany.DataBindings.Add(new Binding("SelectedItem", this.companyBindingSource, "Name", true));
            this.cbCompany.DataSource = this.companyBindingSource;
            this.cbCompany.DisplayMember = "Name";
            this.cbCompany.FormattingEnabled = true;
            this.cbCompany.Location = new Point(13, 13);
            this.cbCompany.Name = "cbCompany";
            this.cbCompany.Size = new Size(240, 0x15);
            this.cbCompany.TabIndex = 0;
            this.companyBindingSource.DataMember = "Company";
            this.companyBindingSource.DataSource = this.info;
            this.info.DataSetName = "Info";
            this.info.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
            this.button1.Location = new Point(13, 0xe3);
            this.button1.Name = "button1";
            this.button1.Size = new Size(0x4b, 0x17);
            this.button1.TabIndex = 1;
            this.button1.Text = "button1";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new EventHandler(this.button1_Click);
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x11c, 0x106);
            base.Controls.Add(this.button1);
            base.Controls.Add(this.cbCompany);
            base.Name = "ICMRegData";
            this.Text = "ICMRegData";
            ((ISupportInitialize) this.companyBindingSource).EndInit();
            this.info.EndInit();
            base.ResumeLayout(false);
        }
    }
}

